package com.dao;

import com.entity.News;
import com.entity.Student;
import com.page.PageInfo;

import java.util.List;

public interface NewsDao {
    public List<News>  getAllNewss();
    public List<News> getNewsByPage(PageInfo pageInfo);
    public News getNewsByIdWithAnos(String nId);
    public News getNewsByIdWithAnoandmembers(String nId);

    //Integer addNewsBynId(News news);
    Integer deleteNewsBynId(String nId);
    Integer updateNewsBynId(News news);
    Integer addNews(News news);
}
